﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooModulesFurnituresFingerGestureWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Modules.Furnitures.FingerGesture);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 5);
			
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "PanGesture", _g_get_PanGesture);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "TiltGesture", _g_get_TiltGesture);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScaleGesture", _g_get_ScaleGesture);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "RotateGesture", _g_get_RotateGesture);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "PanXScale", _g_get_PanXScale);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "PanYScale", _g_get_PanYScale);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "TiltScale", _g_get_TiltScale);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "ZoomScale", _g_get_ZoomScale);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "RotateScale", _g_get_RotateScale);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "PanXScale", _s_set_PanXScale);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "PanYScale", _s_set_PanYScale);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "TiltScale", _s_set_TiltScale);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "ZoomScale", _s_set_ZoomScale);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "RotateScale", _s_set_RotateScale);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0);
			
			
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LuaFunctionNameOnPan", Yoozoo.Modules.Furnitures.FingerGesture.LuaFunctionNameOnPan);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LuaFunctionNameOnTilt", Yoozoo.Modules.Furnitures.FingerGesture.LuaFunctionNameOnTilt);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LuaFunctionNameOnZoom", Yoozoo.Modules.Furnitures.FingerGesture.LuaFunctionNameOnZoom);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LuaFunctionNameOnRotate", Yoozoo.Modules.Furnitures.FingerGesture.LuaFunctionNameOnRotate);
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Modules.Furnitures.FingerGesture();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Modules.Furnitures.FingerGesture constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Modules.Furnitures.FingerGesture();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Modules.Furnitures.FingerGesture constructor!");
            
        }

        
		
        
		
        
        
        
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_PanGesture(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.PanGesture);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_TiltGesture(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.TiltGesture);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ScaleGesture(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.ScaleGesture);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_RotateGesture(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.RotateGesture);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_PanXScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PanXScale);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_PanYScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PanYScale);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_TiltScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.TiltScale);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ZoomScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ZoomScale);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_RotateScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.RotateScale);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_PanXScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.PanXScale = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_PanYScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.PanYScale = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_TiltScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.TiltScale = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_ZoomScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.ZoomScale = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_RotateScale(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.Furnitures.FingerGesture gen_to_be_invoked = (Yoozoo.Modules.Furnitures.FingerGesture)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.RotateScale = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
